package services

import (
	"permange/dao"
	"permange/models"
)

func Getemployee() (error, []models.Employee) {
	partoutData,err  := dao.Selectemployee()
	return err, partoutData
}

func Getemployee_e(eid string)([]models.Employee,error)  {
	employee,err := dao.Selectemploy_e(eid)
	return employee,err
}

func Updateemployee(employee models.Employee) error{
	err:= dao.Updateemployee(employee)
	return err
}

func Addemployee(employee models.Employee) error {
	err := dao.Addemployee(employee)
	return err
}

func Delemployee(id string) error {
	err := dao.Deleteemployee(id)
	return err
}
